package com.sxfq.loansupermarket.backsystem.modular.arrival.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.sxfq.loansupermarket.backsystem.modular.arrival.entity.CustomerInfo;
import com.sxfq.loansupermarket.backsystem.modular.arrival.entity.SearchCustomerInfo;

import java.util.List;

/**
 * 预约客户信息
 *
 * @author py
 * @Date 2018年4月19日23:15:54
 */
public interface ICustomerService {

    List<CustomerInfo> selectPageListByQueryGetMap(Page<CustomerInfo> page, SearchCustomerInfo info);

    int getQueryPagesCount(Page<CustomerInfo> page, SearchCustomerInfo info);

    CustomerInfo selectOneById(String customerId);

    CustomerInfo selectOneByReservationsId(String reservationsId);

    int toVoid(CustomerInfo info);

    List<CustomerInfo> selectOneByCp(String customerPhone);

    List<CustomerInfo> selectOneByCps(String customerPhone);

    int insert(CustomerInfo info);

    String insert2(CustomerInfo info);

    String getMedicalRecordNumber();

    List<CustomerInfo> customerExport(SearchCustomerInfo searchInfo);

    String getCustomerStatus(CustomerInfo customerInfo);

    int reconsuling(CustomerInfo info);

    void updateReservation(String reservationsId);

    //通过电话查询到店客户
    List<CustomerInfo> getCustomerPhoneCount(CustomerInfo info);

    //查询除本号码相同的用户数量
    List<CustomerInfo> getUpdatePhoneCount(String customerPhone, String id);

    void delete(String id);

    int update(CustomerInfo info);

}
